
package com.wake.widget.skin.handler;

import android.content.res.Resources;
import android.view.View;

import androidx.annotation.NonNull;

import com.wake.widget.skin.NMUISkinManager;
import com.wake.widget.util.NMUIResHelper;

import org.jetbrains.annotations.NotNull;

public abstract class NMUISkinRuleColorHandler implements INMUISkinRuleHandler {
    @Override
    public final void handle(@NotNull NMUISkinManager skinManager, @NotNull View view, @NotNull Resources.Theme theme,
                             @NotNull String name, int attr) {
        handle(view, name, NMUIResHelper.getAttrColor(theme, attr));
    }

    protected abstract void handle(@NonNull View view, @NonNull String name, int color);
}
